package ynu.edu.controller;


import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ynu.edu.common.controller.LogicController;
import ynu.edu.dao.ShopDao;
import ynu.edu.entity.Shop;
import ynu.edu.service.ShopService;

import java.util.List;

@Api(tags = "商店实体的控制器")
@RestController
@RequestMapping("/shop")
public class ShopController extends LogicController<ShopService, ShopDao, Shop,Long> {
    public ShopController(@Autowired ShopService service){
        super(service);
    }
    @GetMapping("/getAll")
    public List<Shop> getAll(){
        return getService().getAll();
    }
}